SRCS=$(wildcard *.tex)
INDEX=proposal
OUT=proposal.pdf
AUXS=$(SRCS:.tex=.aux) $(SRCS:.tex=.log) $(SRCS:.tex=.out) $(SRCS:.tex=.dvi) \
     $(SRCS:.tex=.bbl) $(SRCS:.tex=.blg) $(OUT)
REFS=
GFXS=$(wildcard *.eps)

all : $(OUT)

$(OUT) : refs $(SRCS) $(GFXS)
	latex $(INDEX)
	latex $(INDEX)
	#dvips -P pdf -f $(INDEX) | ps2pdf - $(OUT)
	pdflatex $(INDEX)
	pdflatex $(INDEX)
	pdflatex $(INDEX)

refs : $(REFS)
	latex $(INDEX)
	- bibtex $(INDEX)

clean :
	-@ rm -f $(AUXS) *~

.PHONY : all refs clean
